<%@page import="com.dems.dao.MpDao"%>
<%@page import="com.dems.domain.Mp"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="javax.servlet.http.HttpSession" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="css/information.css"/>
<title>我的信息</title>
</head>
<body>
	<table border="4px">
		<caption class="title">个人信息</caption>
        <tbody>
        <%
        Mp mp = (Mp)request.getSession().getAttribute("mp");
        String mpNum = mp.getMpNum();
        MpDao md = new MpDao(); 
        Mp m = md.selectOne(mpNum);
        	%>
       		<tr>
        		<td>工号</td>
        		<td><%=m.getMpNum() %></td>
        	</tr>
        	<tr>
        		<td>姓名</td>
        		<td><%=m.getMpName() %></td>
        	</tr>
        	<tr>
        		<td>楼号</td>
        		<td><%=m.getBuildingId() %></td>
        	</tr>
        	<tr>
        		<td>维修类型</td>
        		<td><%=m.getMpType() %></td>
        	</tr>
        	<tr>
        		<td>手机号</td>
        		<td><%=m.getMpPhone() %></td>
        	</tr>
        </tbody>
	</table>
</body>
</html>